home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / Interfaces / IDL / CanvasB.idl < prev    next >
Encoding:
Text File  |  1997-02-13  |  2.2 KB  |  95 lines  |  [TEXT/MPS ]

  1. //#    Copyright:    © 1993-1995 by Apple Computer, Inc., all rights reserved.
  2.  
  3. #ifndef _CANVASB_
  4. #define _CANVASB_
  5.  
  6. #ifndef _ODOBJECT_
  7. #include "ODObject.idl"      
  8. #endif
  9.  
  10. //==============================================================================
  11. // Classes defined in this interface
  12. //==============================================================================
  13.  
  14. interface  ODBaseCanvas;
  15.  
  16. //==============================================================================
  17. // Classes used in this interface
  18. //==============================================================================
  19.  
  20. interface  ODPart;
  21. interface  ODFacet;
  22. interface  ODShape;
  23. interface  ODTransform;
  24.  
  25. //==============================================================================
  26. // ODCanvas
  27. //==============================================================================
  28.  
  29. interface ODBaseCanvas :  ODObject
  30. {
  31.     ODBoolean            HasPlatformCanvas( in ODGraphicsSystem g );
  32.     ODPlatformCanvas    GetPlatformCanvas( in ODGraphicsSystem g );
  33.     void                SetPlatformCanvas( in ODGraphicsSystem g, in ODPlatformCanvas c );
  34.     
  35.     ODBoolean            HasPlatformPrintJob( in ODGraphicsSystem g );
  36.     ODPlatformPrintJob    GetPlatformPrintJob( in ODGraphicsSystem g );
  37.     void                SetPlatformPrintJob( in ODGraphicsSystem g, in ODPlatformPrintJob j );
  38.     
  39.     ODPart                AcquireOwner( );
  40.     void                SetOwner( in ODPart owner);
  41.     
  42.     ODFacet                GetFacet( );
  43.     void                SetFacet( in ODFacet facet);
  44.     
  45.     ODTransform            AcquireBiasTransform( );
  46.     void                SetBiasTransform( in ODTransform x );
  47.     
  48.     ODBoolean            IsDynamic( );
  49.     ODBoolean            IsOffscreen( );
  50.     
  51.     ODShape                AcquireUpdateShape( );
  52.     void                ResetUpdateShape( );
  53.     
  54.     void                Invalidate( in ODShape shape);
  55.     void                Validate( in ODShape shape);
  56.  
  57.  
  58. #ifdef __SOMIDL__
  59.     implementation
  60.     {
  61.         override:
  62.             somUninit;
  63.         
  64.         releaseorder:
  65.             HasPlatformCanvas,
  66.             GetPlatformCanvas,
  67.             SetPlatformCanvas,
  68.             HasPlatformPrintJob,
  69.             GetPlatformPrintJob,
  70.             SetPlatformPrintJob,
  71.             AcquireOwner,
  72.             SetOwner,
  73.             GetFacet,
  74.             SetFacet,
  75.             IsDynamic,
  76.             IsOffscreen,
  77.             AcquireUpdateShape,
  78.             ResetUpdateShape,
  79.             AcquireBiasTransform,
  80.             SetBiasTransform,
  81.             Invalidate,
  82.             Validate,
  83.             reserved1,
  84.             reserved2;
  85.         
  86.         majorversion = 1; minorversion = 0;
  87.         
  88.         functionprefix = ODBaseCanvas__;
  89.         
  90.     };
  91. #endif
  92. };
  93.  
  94. #endif //# _CANVASB_
  95.